<style >
.demo-spin-icon-load {
    animation: ani-demo-spin 2s linear infinite;
}
.vertical-center-modal {
    z-index:9999;
    display: flex;
    align-items: center;
    justify-content: center;
    border:none;
}
@keyframes ani-demo-spin {
    from {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.demo-spin-col {
    height: 100px;
    position: relative;
    border: 1px solid #eee;
}
</style>
<template>
    <Modal v-model="LoadShowInfo" width="200"  class-name="vertical-center-modal">
        <div slot="close" style="display:none;border:none"></div>    
        <div slot="header" style="display:none;border:none;border-bottom:none"></div>
        <Spin size="large" style="border:none">
            <Icon type="load-c" size=24 class="demo-spin-icon-load"></Icon>
            <div></div>
        </Spin>
        <div slot="footer" style="display:none;border:none;border-top:none"></div>
    </Modal>
</template>
<script>
export default {
    data() {
        return {
            LoadShowInfo: false
        }
    },
    methods: {
        show() {
            this.LoadShowInfo = this.$store.state.LoadShowType;
        }
    },
    watch: {
        // 如果路由有变化，会再次执行该方法
        "$store.state.LoadShowType": "show"
    }
}
</script>